#ifndef TIEC_CONVERT_JSON_H
#define TIEC_CONVERT_JSON_H

#include "component.h"

namespace NS_TIEC {
  class MakeObjectFromJson {
  public:
    /// 解析json创建Options组件
    /// \param json Json文本
    static PTR<Options> makeOptions(const String& json);
  };

  class ConvertObjectToJson {
  public:
    /// 将Diagnostic转换为Json
    /// \param diagnostic Diagnostic
    static String dumpDiagnostic(const Diagnostic& diagnostic);
  };
}

#endif //TIEC_CONVERT_JSON_H
